#include <stdio.h>
#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>

void Musique(int Nummap)
{
SDL_Init(SDL_INIT_EVERYTHING);
if(Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 1024) == -1) //Initialisation de l'API Mixer
{
printf("%s", Mix_GetError());
}
Mix_Music *musique;
switch (Nummap)
{
case 1 : musique = Mix_LoadMUS("Nina Simone - Don't Let Me Be Misunderstood.mp3");break;
case 2 : musique = Mix_LoadMUS("Feeling Good, Nina Simone.mp3");break;
case 3 : musique = Mix_LoadMUS("Ludovico Einaudi - Fly.mp3");break;
}

Mix_PlayMusic(musique, 2);
}
